package com.oc.mba.presist;

import java.util.Date;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

@DatabaseTable(tableName = "exam_practice")
public class Practice {

	/** 随即练习 **/
	public static final int RANDOM = 0;
	
	@DatabaseField(generatedId = true)
	private Long id;
	// 练习类型
	@DatabaseField
	private int type;
	// 花费时间
	@DatabaseField
	private long timeUsed;
	// 错误题数
	@DatabaseField
	private int failureCount = 0;
	// 正确题数
	@DatabaseField
	private int correctCount = 0;
	// 得分
	@DatabaseField
	private int score = 0;
	// 开始时间
	@DatabaseField
	private Date startTime;

	public Practice() {

	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public long getTimeUsed() {
		return timeUsed;
	}

	public void setTimeUsed(long timeUsed) {
		this.timeUsed = timeUsed;
	}

	public int getFailureCount() {
		return failureCount;
	}

	public void setFailureCount(int failureCount) {
		this.failureCount = failureCount;
	}

	public int getCorrectCount() {
		return correctCount;
	}

	public void setCorrectCount(int correctCount) {
		this.correctCount = correctCount;
	}

	public int getScore() {
		return score;
	}

	public void setScore(int score) {
		this.score = score;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

}
